﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace FirmaTransportowa
{
    public partial class AdminPanel : Form
    {
        public AdminPanel()
        {
            InitializeComponent();
        }

        private void nowaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AdminAddNewUser adminAddNewUser = new AdminAddNewUser();
            adminAddNewUser.Show();
        }

        private void dodajToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AdminAddNewWorker adminAddNewWorker = new AdminAddNewWorker();
            adminAddNewWorker.Show();
        }

        private void usuńToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AdminDeleteUser adminDeleteUser = new AdminDeleteUser();
            adminDeleteUser.Show();
        }

        private void usuńToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            AdminDeleteWorker adminDeleteWorker = new AdminDeleteWorker();
            adminDeleteWorker.Show();
        }

        private void edytujToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AdminSelectUser adminSelectUser = new AdminSelectUser();
            adminSelectUser.Show();
        }

        private void edytujToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            AdminSelectWorker adminSelectWorker = new AdminSelectWorker();
            adminSelectWorker.Show();
        }

        private void pracownikToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        protected override void OnFormClosing(FormClosingEventArgs e)
        {
            if (e.CloseReason == CloseReason.UserClosing)
            {
                Application.Exit();
            }
        }
    }
}
